Repository navigation
refactor: normalize appstore JSON with catalog-centric structure - #155
Merged
Merged
Conversation
|
🙈 The PR is closed and the preview is expired. |
Group data by catalog (repo) instead of flat alias lists with repeated repo info. Each catalog entry contains repo metadata (owner, name, stars, icon, link) with aliases and templates as children. Drop redundant fullcommand field (always 'jbang ' + command). - 532KB → 269KB pretty-printed (49% smaller) - 445KB → 195KB minified (56% smaller) - 55KB → 45KB gzipped (18% smaller over the wire)
maxandersen
force-pushed
the
normalize-appstore-json
branch
from
May 10, 2026 22:55
268a6e5 to
aa01c89
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Group data by catalog (repo) instead of flat alias lists with repeated repo info. Each catalog entry contains repo metadata (owner, name, stars, icon, link) with aliases and templates as children.
Size reduction:
Structure (before):
{ "aliases": [{ "stars": 11335, "icon_url": "...", "repoOwner": "apple", "repoName": "pkl", ... }, ...] }Structure (after):
{ "catalogs": [{ "owner": "apple", "name": "pkl", "stars": 11335, "icon": "...", "aliases": [{"a": "pkl", "c": "pkl@apple/pkl", ...}], "templates": [] }] }Updated
.github/appstore.javagenerator andcontent/appstore.htmlfrontend.